package com.malljelly.study.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by 骑着蜗牛去旅行 on 2018/8/12.
 */
@Slf4j
@Component
public class MessageConsumerService {

    @RabbitListener(queues="com.malljelly.study.queue")
    public void receiveMessage(String json) {	// 进行消息接收处理
        log.info("接受到消息内容json:{}", json);
    }
}
